#include <iostream>
using namespace std;
int main()
{
	int ch;
	int count = 0;
	while ((ch = cin.get()) != EOF)
	{
		cout << char(ch);
		++count;
	}

	cout << endl << count << " characters read\n";
	system("pause");
	return 0;
}
